package com.example.demo.impl;

import com.example.demo.myinterface.Fruit;

public class Orange implements Fruit {
    @Override
    public boolean matchType(String fruitName) {
        if(fruitName.equals("橘子")){
            return true;
        }
        return false;
    }

    @Override
    public String eat() {
        System.out.println("吃橘子");
        return "吃橘子";
    }
}
